﻿using SuporeSliplampApp.Base;
using SuporeSliplampApp.Util;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Imaging;

namespace SuporeSliplampApp.Models
{
    public class MainModel:NotifyBase
    {
        public PatientModel Patient  = new PatientModel();

		private UIElement _mainContent;

		public UIElement MainContent
		{
			get { return _mainContent; }
			set { _mainContent = value; this.NotifyChanged(); }
		}

        private bool _editEnabled = false;

        public bool EditEnabled
        {
            get { return _editEnabled; }
            set { _editEnabled  = value; this.NotifyChanged(); }
        }

        private int _buttonWidth = 0;

        public int ButtonWidth
        {
            get { return _buttonWidth ; }
            set { _buttonWidth  = value; this.NotifyChanged(); }
        }


        private bool _test;

        public bool Test
        {
            get { return _test; }
            set { _test = value; this.NotifyChanged(); }
        }

		private string _lablelMsg;

		public string LableMsg
		{
			get { return _lablelMsg; }
			set { _lablelMsg = value; this.NotifyChanged(); }
		}

		private BitmapImage _cImage;

		public BitmapImage CImage
		{
			get { return _cImage; }
			set { _cImage = value; }
		}

        private uvcham _cam;

        public uvcham Cam
        {
            get { return _cam; }
            set { _cam = value; }
        }

        private WriteableBitmap bmp_;

        public WriteableBitmap Bmp
        {
            get { return bmp_; }
            set { bmp_ = value; }
        }

        private IntPtr buf_ = IntPtr.Zero;

        public IntPtr Buf
        {
            get { return buf_; }
            set { buf_ = value; }
        }

        private ObservableCollection<Model> vm_model { get; set; }

        public ObservableCollection<Model> VM_Model
        {
            get { return vm_model; }
            set { vm_model = value; }
        }

        public class Model
        { 
            public string Path { get; set; }
        }



    }
}
